.class public Lcom/hierynomus/smbj/smb2/messages/SMB2IoctlRequest;
.super Lcom/hierynomus/smbj/smb2/d;
.source "SMB2IoctlRequest.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/hierynomus/smbj/smb2/messages/SMB2IoctlRequest$ControlCode;
    }
.end annotation


# instance fields
.field c:J

.field private final d:Lcom/hierynomus/smbj/smb2/messages/SMB2IoctlRequest$ControlCode;

.field private final e:Lcom/hierynomus/smbj/smb2/a;

.field private final f:[B

.field private final g:Z


# direct methods
.method public constructor <init>(Lcom/hierynomus/smbj/smb2/SMB2Dialect;JJLcom/hierynomus/smbj/smb2/messages/SMB2IoctlRequest$ControlCode;Lcom/hierynomus/smbj/smb2/a;[BZ)V
    .locals 9

    move-object v8, p0

    .line 1
    sget-object v3, Lcom/hierynomus/smbj/smb2/SMB2MessageCommandCode;->SMB2_IOCTL:Lcom/hierynomus/smbj/smb2/SMB2MessageCommandCode;

    const/16 v1, 0x39

    move-object v0, p0

    move-object v2, p1

    move-wide v4, p2

    move-wide v6, p4

    invoke-direct/range {v0 .. v7}, Lcom/hierynomus/smbj/smb2/d;-><init>(ILcom/hierynomus/smbj/smb2/SMB2Dialect;Lcom/hierynomus/smbj/smb2/SMB2MessageCommandCode;JJ)V

    const-wide/32 v0, 0x10000

    .line 2
    iput-wide v0, v8, Lcom/hierynomus/smbj/smb2/messages/SMB2IoctlRequest;->c:J

    move-object v0, p6

    .line 3
    iput-object v0, v8, Lcom/hierynomus/smbj/smb2/messages/SMB2IoctlRequest;->d:Lcom/hierynomus/smbj/smb2/messages/SMB2IoctlRequest$ControlCode;

    move-object/from16 v0, p7

    .line 4
    iput-object v0, v8, Lcom/hierynomus/smbj/smb2/messages/SMB2IoctlRequest;->e:Lcom/hierynomus/smbj/smb2/a;

    if-nez p8, :cond_0

    const/4 v0, 0x0

    new-array v0, v0, [B

    goto :goto_0

    :cond_0
    move-object/from16 v0, p8

    .line 5
    :goto_0
    iput-object v0, v8, Lcom/hierynomus/smbj/smb2/messages/SMB2IoctlRequest;->f:[B

    move/from16 v0, p9

    .line 6
    iput-boolean v0, v8, Lcom/hierynomus/smbj/smb2/messages/SMB2IoctlRequest;->g:Z

    return-void
.end method


# virtual methods
.method protected d(Lcom/hierynomus/smbj/common/b;)V
    .locals 7

    .line 1
    iget v0, p0, Lcom/hierynomus/smbj/smb2/d;->b:I

    invoke-virtual {p1, v0}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->c(I)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 2
    invoke-virtual {p1}, Lcom/hierynomus/smbj/common/b;->m()Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 3
    iget-object v0, p0, Lcom/hierynomus/smbj/smb2/messages/SMB2IoctlRequest;->d:Lcom/hierynomus/smbj/smb2/messages/SMB2IoctlRequest$ControlCode;

    invoke-virtual {v0}, Lcom/hierynomus/smbj/smb2/messages/SMB2IoctlRequest$ControlCode;->getValue()J

    move-result-wide v0

    invoke-virtual {p1, v0, v1}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->b(J)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 4
    iget-object v0, p0, Lcom/hierynomus/smbj/smb2/messages/SMB2IoctlRequest;->e:Lcom/hierynomus/smbj/smb2/a;

    invoke-virtual {v0, p1}, Lcom/hierynomus/smbj/smb2/a;->a(Lcom/hierynomus/smbj/common/b;)V

    .line 5
    iget-object v0, p0, Lcom/hierynomus/smbj/smb2/messages/SMB2IoctlRequest;->f:[B

    array-length v0, v0

    const-wide/16 v1, 0x0

    if-lez v0, :cond_0

    const/16 v0, 0x78

    int-to-long v3, v0

    .line 6
    invoke-virtual {p1, v3, v4}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->b(J)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 7
    iget-object v0, p0, Lcom/hierynomus/smbj/smb2/messages/SMB2IoctlRequest;->f:[B

    array-length v0, v0

    int-to-long v3, v0

    invoke-virtual {p1, v3, v4}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->b(J)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    goto :goto_0

    .line 8
    :cond_0
    invoke-virtual {p1, v1, v2}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->b(J)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 9
    invoke-virtual {p1, v1, v2}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->b(J)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 10
    :goto_0
    invoke-virtual {p1, v1, v2}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->b(J)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 11
    invoke-virtual {p1, v1, v2}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->b(J)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 12
    invoke-virtual {p1, v1, v2}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->b(J)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 13
    iget-wide v3, p0, Lcom/hierynomus/smbj/smb2/messages/SMB2IoctlRequest;->c:J

    iget-object v0, p0, Lcom/hierynomus/smbj/smb2/messages/SMB2IoctlRequest;->f:[B

    array-length v0, v0

    add-int/lit8 v0, v0, 0x8

    int-to-long v5, v0

    sub-long/2addr v3, v5

    invoke-virtual {p1, v3, v4}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->b(J)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 14
    iget-boolean v0, p0, Lcom/hierynomus/smbj/smb2/messages/SMB2IoctlRequest;->g:Z

    if-eqz v0, :cond_1

    const-wide/16 v1, 0x1

    :cond_1
    invoke-virtual {p1, v1, v2}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->b(J)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 15
    invoke-virtual {p1}, Lcom/hierynomus/smbj/common/b;->n()Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 16
    iget-object v0, p0, Lcom/hierynomus/smbj/smb2/messages/SMB2IoctlRequest;->f:[B

    array-length v1, v0

    if-lez v1, :cond_2

    .line 17
    invoke-virtual {p1, v0}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->a([B)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    :cond_2
    return-void
.end method
